home *** CD-ROM | disk | FTP | other *** search
/ 10,000 Great Games / 10,000 Great Games.iso / Product / 66 / data1.cab / Source_Files / Src / Falling.cpp < prev    next >
C/C++ Source or Header  |  2000-01-16  |  357b  |  25 lines

  1. #include "stdafx.h"
  2.  
  3. cFalling::cFalling(int _x, int _y, cProperties *_orig)
  4.         : cWeapon(_x, _y, _orig, "MOVING")
  5. }
  6.  
  7. cFalling::~cFalling()
  8. {
  9. }
  10.  
  11. int cFalling::control()
  12. {
  13.     if (explode)
  14.         return FALSE;
  15.  
  16.     make_trail();
  17.     
  18.     cWeapon::control();
  19.     
  20.     bounce_on_boundaries();
  21.     
  22.     return !check_radial_hit_one(circle_bounds) && !in_water();
  23. }
  24.